package cn.lyh.gulimall.product.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * @author lyh
 * @version 1.0
 * @since 2021/4/6
 */
/**
    * spu信息
    */
@Data
@TableName(value = "pms_spu_info")
public class PmsSpuInfo {
    /**
     * 商品id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 商品名称
     */
    @TableField(value = "spu_name")
    private String spuName;

    /**
     * 商品描述
     */
    @TableField(value = "spu_description")
    private String spuDescription;

    /**
     * 所属分类id
     */
    @TableField(value = "catalog_id")
    private Long catalogId;

    /**
     * 品牌id
     */
    @TableField(value = "brand_id")
    private Long brandId;

    @TableField(value = "weight")
    private BigDecimal weight;

    /**
     * 上架状态[0 - 下架，1 - 上架]
     */
    @TableField(value = "publish_status")
    private Byte publishStatus;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "update_time")
    private Date updateTime;

    public static final String COL_ID = "id";

    public static final String COL_SPU_NAME = "spu_name";

    public static final String COL_SPU_DESCRIPTION = "spu_description";

    public static final String COL_CATALOG_ID = "catalog_id";

    public static final String COL_BRAND_ID = "brand_id";

    public static final String COL_WEIGHT = "weight";

    public static final String COL_PUBLISH_STATUS = "publish_status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";
}